function StringToHex(str) {   // string 转 hex
    let uint8Array = [];
    for (let i = 0; i < str.length; i += 2) {
        uint8Array.push( "0x" + str.substr(i, 2));
    }
    return uint8Array;
}